/* @(#)GSProviderVO.java   
 *
 * Project: GS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li    2006-3-20     新增
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;
import com.hitrust.gs.util.DefineDic;

/**
 * 
 */
public class GSProviderVO implements GSBaseBean {
    public String providerId;
    
    public String providerName;
    
    public String manufId;
    
    public double manufUnitprice;
    
    public String isTradeFlatProv;
    
    public String isTradeFlatManuf;
    
    public String mode;
    
    public String validity;
    
    public String modename;
    public Object process(ResultSet aResultSet) throws SQLException {
        GSProviderVO tVO = new GSProviderVO();
        tVO.providerId = aResultSet.getString("P1");
        tVO.providerName = aResultSet.getString("P2");
        tVO.manufId = aResultSet.getString("P3");
        tVO.manufUnitprice = aResultSet.getDouble("P4");
        tVO.isTradeFlatProv = aResultSet.getString("P5");
        tVO.isTradeFlatManuf = aResultSet.getString("P6");
        tVO.mode = aResultSet.getString("P7");
        if (aResultSet.getString("P7")!=null) {
            tVO.modename=DefineDic.getBalanceMode(aResultSet.getString("P7").trim());
        }
        tVO.validity=aResultSet.getString("P8");
        return tVO;
    }

}
